package com.hzhc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 路由常用列表
 * </p>
 *
 * @author huangp
 * @since 2024-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("router_collect")
public class RouterCollect implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 路由类型 0-vue 1-html
     */
    private Integer type;

    /**
     * 系统类型
     */
    private Long portId;

    /**
     * 系统类型
     */
    private String appKey;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 名称
     */
    private String title;

    /**
     * 路由
     */
    private String router;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 是否常用0-否 1-是
     */
    private Integer common;

}
